package com.bw.module_inspection.api


import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.BaseResponse
import com.bw.module_inspection.model.AddInspectionEntity
import com.bw.module_inspection.model.InspectionEntity
import retrofit2.http.*

interface InspectionApiService :BaseApiServer {
    @GET("/api/patrol-points")
    suspend fun getInspection():BaseResponse<List<InspectionEntity>>
    @POST("/api/patrol-points")
    suspend fun addInspection(@Body inspection:AddInspectionEntity):BaseResponse<AddInspectionEntity>
    @GET("/api/patrol-points/{id}")
    suspend fun getInspectionDetail(@Path("id") id:Int):BaseResponse<InspectionEntity>
    @GET("/api/patrol-points/search")
    suspend fun getInspectionAgent(@Query("location") location:String,@Query("name") name:String):BaseResponse<List<InspectionEntity>>
}